(ns ensemble.Main
  (:gen-class :extends javafx.application.Application)
  (:import javafx.application.Application
           javafx.scene.Scene
           javafx.stage.StageStyle)
  (:use cljfx.dsl)
  (:require [ensemble.primary-stage :as pstage]))

(defn -start [this stage]
  (let [scene (Scene. (pstage/rootComponent) 1020 700)]
    (doto scene
      (.. getStylesheets (add "ensemble2.css")))
    (doto stage
      (.setScene scene)
      (.setTitle "Ensemble")
      (.initStyle StageStyle/UNDECORATED)
      (.show))))


(defn -main [& args]
  (Application/launch ensemble.Main args))